package com.ysstech.finance.thread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadPool {


    //创建线程池对象

    private static ExecutorService threadPool = Executors.newFixedThreadPool(10);

    /**
     * 获取线程池
     *
     * @return 线程池
     */
    public static ExecutorService getThreadPool() {
        return threadPool;
    }
}
